/***    
request.globalRequest(url,请求方式,obj数据,123,true单,true 多array)url, method, data, power, isUpload, isFiles
1===没登录前的请求头
2===携带请求头token
3===刷新token
***/
import request from '@/util/request/request.ts'
const apiCode={}
// 电子保修卡 - 获取保修卡列表
apiCode.getUserCodeList = (data) => request.globalRequest({url:`/mobile/user/code/getUserCodeList`, method:'POST',data,power:2})
// 获取编码扫码详情信息
apiCode.getUserOrderCodeInfo = (data) => request.globalRequest({url:`/mobile/user/code/getUserOrderCodeInfo`, method:'get',data,power:2})
// 电子保修卡 - 根据编码查询
apiCode.getRegisterSecurityCheck = (data) => request.globalRequest({url:`/mobile/user/code/getRegisterSecurityCheck`, method:'get',data,power:2})
// 防伪查询-电子保修卡 - 根据编码ID获取编码-电子保修卡详情
apiCode.getCodeDetail = (codeId) => request.globalRequest({url:`/mobile/user/code/getCodeDetail/`+codeId, method:'get',power:2})
// 获取编码扫码详情信息
apiCode.getUserCodeDetail = (codeId) => request.globalRequest({url:`/mobile/user/code/getUserCodeDetail/`+codeId, method:'get',power:2})
//增加电子保修卡
apiCode.saveUserCodeRegister = (data) => request.globalRequest({url:`/mobile/user/code/saveUserCodeRegister`, method:'post',data,power:2})
// 防伪查询 - 根据编码-仓库编码查询
apiCode.getSecurityCheck = (data) => request.globalRequest({url:`/mobile/user/code/getSecurityCheck`, method:'GET',data,power:2})
//获取带有蓝牙二维码的商品列表
apiCode.getBluetoothQrImageGoodsList = (data) => request.globalRequest({url:`/mobile/user/gooods/getBluetoothQrImageGoodsList`, method:'post',data,power:2})
//获取收费标准关联的分类
apiCode.getGoodstype = () => request.globalRequest({url:`/mobile/user/fee/getGoodstype`, method:'get',power:2})
// 获取收费标准信息列表
apiCode.getUserServiceFeeInfoList = (data) => request.globalRequest({url:`/mobile/user/fee/getUserServiceFeeInfoList`, method:'post',data,power:2})
// 根据SN码获取收费标准关联的分类
apiCode.getGoodsTypeBySNCode = (snCode) => request.globalRequest({url:`/mobile/user/fee/getGoodsTypeBySNCode/${snCode}`, method:'get',power:2})


//根据SN码获取包修政策
apiCode.getMobileWarrantyPolicyBySnCode = (data) => request.globalRequest({url:`/mobile/user/gooods/getMobileWarrantyPolicyBySnCode`,data, method:'get',power:2})
// 根据商品分类查询包修政策
apiCode.getWarrantyPolicy = (gooddsTypeId) => request.globalRequest({url:`/mobile/user/gooods/getWarrantyPolicy/${gooddsTypeId}`, method:'get',power:2})
// 根据商品ID查询包修政策
apiCode.getMobileWarrantyPolicyByGoodsId = (goodsId) => request.globalRequest({url:`/mobile/user/gooods/getMobileWarrantyPolicyByGoodsId/${goodsId}`, method:'get',power:2})
// 获取商品型号
apiCode.getGoodsModel = (data) => request.globalRequest({url:`/mobile/select/getGoodsModel`,data, method:'post',power:2})
//获取商品分类及所有下级分类
apiCode.getGoodsTypes=()=>request.globalRequest({url:`/mobile/select/getGoodsTypes`,method:'get',power:2})
export default apiCode